﻿/****************************************************************************************************************
*                                                                                                               *
* Copyright (C) 2011 5173.com                                                                                   *
* This project may be copied only under the terms of the Apache License 2.0.                                    *
* Please visit the project Home Page http://bqqapicsharp.codeplex.com/ for more detail.                         *
*                                                                                                               *
****************************************************************************************************************/

namespace BQQAPIClient.Core.Network
{
    using System.Collections.Generic;
    using BQQAPIClient.Core.Utility;

    public class ServerConfiguration : DebugBase
    {
        public LogLevel LogLevel;

        public bool EnablePerformanceCounter;

        public int MaxReceiveConnections;

        public int MaxSendConnections;

        public int ListeningPort;

        public int C2SHeartbeatInterval;

        public int RecieveBufferSize = 64 * 1024;

        public Queue<Daemon> DaemonList;

        public ServerConfiguration(
            bool enablePerformanceCounter, 
            LogLevel logLevel,
            int maxReceiveConnections,
            int maxSendConnections, 
            int listeningPort, 
            int c2SHeartbeatInterval,
            Queue<Daemon> daemonList)
        {
            EnablePerformanceCounter = enablePerformanceCounter;
            MaxReceiveConnections = maxReceiveConnections;
            MaxSendConnections = maxSendConnections;
            C2SHeartbeatInterval = c2SHeartbeatInterval;
            LogLevel = logLevel;
            DaemonList = daemonList;
        }
    }
}
